import React from 'react'
import { Result, Button } from 'antd'
import Link from 'next/link'

function ResultPage () {
  return (
    <div style={{height: '100vh', background: '#fff'}}>
      <Result
        status="success"
        title="发布成功"
        extra={[
          <Link prefetch key="home" href={{pathname: '/'}}><Button type="primary" >
          返回主页</Button></Link>,
          <Link prefetch key="continue" href={{pathname: '/add-article'}}><Button>继续发布</Button></Link>,
        ]}
      />
    </div>
  )
}

export default  ResultPage